\documentclass{article}
\usepackage{pgfplots}
\pgfrealjobname{draw}
\begin{document}
\begin{figure}[ht]
    \beginpgfgraphicnamed{draw1}
    \begin{tikzpicture}
       \begin{axis}[mark size=0.7pt,xlabel=$x$,ylabel=$y$,zlabel=$z$,view={15}{25},grid=major,scatter/classes={0={mark=*,blue},1={mark=triangle*,red}},legend cell align=left]
           \addplot3 [only marks, scatter, point meta = explicit] table[x=xcol,y=ycol,z=zcol,meta=color] {input_number_3_xor_number_3_copy_pca.txt};
           \legend{No attacked,Attacked}
       \end{axis}
    \end{tikzpicture} 
    \endpgfgraphicnamed
\end{figure}
\begin{figure}[ht]
    \beginpgfgraphicnamed{draw2}
    \begin{tikzpicture}
       \begin{axis}[mark size=0.7pt,xlabel=$x$,ylabel=$y$,zlabel=$z$,view={15}{25},grid=major,scatter/classes={0={mark=*,blue},1={mark=triangle*,red}},legend cell align=left]
           \addplot3 [only marks, scatter, scatter src = explicit] table[x=xcol,y=ycol,z=zcol,meta=color] {input_number_3_xor_number_3_pca.txt};\legend{No attacked,Attacked}
       \end{axis}
    \end{tikzpicture} 
    \endpgfgraphicnamed
\end{figure}
\begin{figure}[ht]
    \beginpgfgraphicnamed{draw3}
    \begin{tikzpicture}
       \begin{axis}[mark size=0.7pt,xlabel=$x$,ylabel=$y$,zlabel=$z$,view={15}{25},grid=major,scatter/classes={0={mark=*,blue},1={mark=triangle*,red}},legend cell align=left]
           \addplot3 [only marks, scatter, scatter src = explicit] table[x=xcol,y=ycol,z=zcol,meta=color] {input_number_4_pca.txt};\legend{No attacked,Attacked}
       \end{axis}
    \end{tikzpicture} 
    \endpgfgraphicnamed
\end{figure}
\begin{figure}[ht]
    \beginpgfgraphicnamed{draw4}
    \begin{tikzpicture}
       \begin{axis}[mark size=0.7pt,xlabel=$x$,ylabel=$y$,zlabel=$z$,view={15}{25},grid=major,scatter/classes={0={mark=*,blue},1={mark=triangle*,red}},legend cell align=left]
           \addplot3 [only marks, scatter, scatter src = explicit] table[x=xcol,y=ycol,z=zcol,meta=color] {input_number_5_pca.txt};\legend{No attacked,Attacked}
       \end{axis}
    \end{tikzpicture} 
    \endpgfgraphicnamed
\end{figure}
\end{document}
